<template>
  <div>
    <div class="user-profile">
      <user-base-info class="user-base-info"></user-base-info>
      
      <user-data-info class="user-data-info"></user-data-info>
    </div>

    <router-view class="user-works"></router-view>

    <div class="user-help-cards">
      <img src="@/assets/image/ad3.png" alt="Ad3">
      <div class="authority">
        <p>ToKnow</p>
        <p>Copyright © 2022.ToKnow All rights reserved.</p>
      </div>
    </div>
  </div>
</template>

<script>
import UserBaseInfo from './profile/UserBaseInfo.vue'
import UserDataInfo from './profile/UserDataInfo.vue'

export default {
  components: {
    UserBaseInfo,
    UserDataInfo,
  }
}
</script>

<style lang="less" scoped>
.user-profile {
  --h: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .user-base-info {
    --userBaseInfoWidth: var(--innerWidthPart1);
    --userBaseInfoHeight: 120px;
  }

  .user-data-info {
    --userDataInfoWidth: var(--innerWidthPart2);
    --userDataInfoHeight: 120px;
  }
}

.user-works,
.user-help-cards {
  margin-top: 10px;
}

.user-works {
  float: left;
  background-color: white;
}

.user-help-cards {
  float: right;
  width: var(--innerWidthPart2);
  min-height: 200px;

  img {
    width: 100%;
  }

  .authority {
    box-sizing: border-box;
    float: right;
    width: 100%;
    height: 100px;
    color: var(--dark);
    font-size: 14px;
  }
}
</style>